package cn.stylefeng.guns.modular.system.service;

import cn.stylefeng.guns.modular.system.entity.Ticket;
import cn.stylefeng.guns.modular.system.mapper.TicketMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * <p>
 * 查看车辆罚单记录service
 * </p>
 *
 * @author stylefeng
 * @since 2018-12-07
 */
@Service
public class TicketService extends ServiceImpl<TicketMapper, Ticket> {
    @Autowired
    private TicketMapper ticketMapper;

    /**
     * 将数据保存并且返回出刚保存的id
     * @param ticket
     * @return
     */
    public void insertAndGetId(Ticket ticket) {
        ticketMapper.insertAndGetId(ticket);
    }
}
